#include <iostream>
#include <fstream>
#include <string>

class FinanceTracker {
private:
    double income;
    double expenses;
public:
    FinanceTracker() : income(0), expenses(0) {}

    void recordIncome(double amount) {
        income += amount;
    }

    void recordExpense(double amount) {
        expenses += amount;
    }

    void showSummary() {
        std::cout << "Total Income: $" << income << std::endl;
        std::cout << "Total Expenses: $" << expenses << std::endl;
    }
};

int main() {
    FinanceTracker tracker;
    tracker.recordIncome(1000);
    tracker.recordExpense(500);
    tracker.showSummary();
    
}
